package com.example.book_recommend.service.impl;

import com.example.book_recommend.dao.BookInfoMapper;
import com.example.book_recommend.entity.BookInfo;
import com.example.book_recommend.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("BookService")
public class BookServiceImpl implements BookService {
    @Autowired
    private BookInfoMapper bookInfoMapper;

    @Override
    public BookInfo getBookInfo(Integer id) {
        return bookInfoMapper.selectByPrimaryKey((long)id);
    }
}
